package process

import (
	"fmt"
	"encoding/json"
	"manyuser/common/message"
)
//读取群消息
func outputGroups(mes *message.Message){
	var smsMes message.SmsMes
	err:=json.Unmarshal([]byte(mes.Data),&smsMes)

	if err!=nil{
		fmt.Println("err:=json.Unmarshal([]byte(message.Data),&smsMes) wrong",err)
		return
	}
	fmt.Println(fmt.Sprintf("userid:%d\t says:\t%s",smsMes.UserId,smsMes.Content))
	fmt.Println()
}